package com.ruoyi.boss.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.boss.mapper.InvoiceManagementOneMapper;
import com.ruoyi.boss.domain.InvoiceManagementOne;
import com.ruoyi.boss.service.IInvoiceManagementOneService;

/**
 * 发票详情Service业务层处理
 * 
 * @author rui
 * @date 2025-08-18
 */
@Service
public class InvoiceManagementOneServiceImpl implements IInvoiceManagementOneService 
{
    @Autowired
    private InvoiceManagementOneMapper invoiceManagementOneMapper;

    /**
     * 查询发票详情
     * 
     * @param invoiceId 发票详情主键
     * @return 发票详情
     */
    @Override
    public InvoiceManagementOne selectInvoiceManagementOneByInvoiceId(Long invoiceId)
    {
        return invoiceManagementOneMapper.selectInvoiceManagementOneByInvoiceId(invoiceId);
    }

    /**
     * 查询发票详情列表
     * 
     * @param invoiceManagementOne 发票详情
     * @return 发票详情
     */
    @Override
    public List<InvoiceManagementOne> selectInvoiceManagementOneList(InvoiceManagementOne invoiceManagementOne)
    {
        return invoiceManagementOneMapper.selectInvoiceManagementOneList(invoiceManagementOne);
    }

    /**
     * 新增发票详情
     * 
     * @param invoiceManagementOne 发票详情
     * @return 结果
     */
    @Override
    public int insertInvoiceManagementOne(InvoiceManagementOne invoiceManagementOne)
    {
        return invoiceManagementOneMapper.insertInvoiceManagementOne(invoiceManagementOne);
    }

    /**
     * 修改发票详情
     * 
     * @param invoiceManagementOne 发票详情
     * @return 结果
     */
    @Override
    public int updateInvoiceManagementOne(InvoiceManagementOne invoiceManagementOne)
    {
        return invoiceManagementOneMapper.updateInvoiceManagementOne(invoiceManagementOne);
    }

    /**
     * 批量删除发票详情
     * 
     * @param invoiceIds 需要删除的发票详情主键
     * @return 结果
     */
    @Override
    public int deleteInvoiceManagementOneByInvoiceIds(Long[] invoiceIds)
    {
        return invoiceManagementOneMapper.deleteInvoiceManagementOneByInvoiceIds(invoiceIds);
    }

    /**
     * 删除发票详情信息
     * 
     * @param invoiceId 发票详情主键
     * @return 结果
     */
    @Override
    public int deleteInvoiceManagementOneByInvoiceId(Long invoiceId)
    {
        return invoiceManagementOneMapper.deleteInvoiceManagementOneByInvoiceId(invoiceId);
    }
}
